function DistributorCash(params){ 
	 
}

DistributorCash.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new DistributorCash.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new DistributorCash.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new DistributorCash.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	
	
	/** 编号 [非空]       **/
	this.id=function(id){if(this.proxy)return this.getProxy().id(id);  this.put("id", id);return this;};
	/** and id is null */
	this.idNull=function(){if(this.proxy)return this.getProxy().idNull();if(this.get("idNot")==null)this.put("idNot", "");this.put("id", null);return this;};
	/** not .... */
	this.idNot=function(){if(this.proxy)return this.getProxy().idNot();this.put("idNot", "not");return this;};
	this.idNotNull=function(){if(this.proxy)return this.getProxy().idNotNull();this.put("idNot", "not");this.put("id", null);return this;};
	this.idNot=function(id){if(this.proxy)return this.getProxy().idNot(id);this.put("idNot", "not");this.put("id", id);return this;};
		
	/** and id <= ? */
	this.idMin=function(min){if(this.proxy)return this.getProxy().idMin(min);this.put("idMin", min);return this;};
	/** and id >= ? */
	this.idMax=function(max){if(this.proxy)return this.getProxy().idMax(max);this.put("idMax", max);return this;};
		
		
	this.idIn=function(ids){
		if(this.proxy)return this.getProxy().idIn(ids);  this.put("idIn", ids);return this;
	};	
		 
	
	
	/** 配送商 [非空] [Distributor]      **/
	this.distributor=function(distributor){if(this.proxy)return this.getProxy().distributor(distributor);  this.put("distributor", distributor);return this;};
	/** and distributor is null */
	this.distributorNull=function(){if(this.proxy)return this.getProxy().distributorNull();if(this.get("distributorNot")==null)this.put("distributorNot", "");this.put("distributor", null);return this;};
	/** not .... */
	this.distributorNot=function(){if(this.proxy)return this.getProxy().distributorNot();this.put("distributorNot", "not");return this;};
	this.distributorNotNull=function(){if(this.proxy)return this.getProxy().distributorNotNull();this.put("distributorNot", "not");this.put("distributor", null);return this;};
	this.distributorNot=function(distributor){if(this.proxy)return this.getProxy().distributorNot(distributor);this.put("distributorNot", "not");this.put("distributor", distributor);return this;};
		
		
	this.distributorIn=function(ids){
		if(this.proxy)return this.getProxy().distributorIn(ids);  this.put("distributorIn", ids);return this;
	};	
		 
	
	
	/** 配送商名称        **/
	this.name=function(name){if(this.proxy)return this.getProxy().name(name);  this.put("name", name);return this;};
	/** and name is null */
	this.nameNull=function(){if(this.proxy)return this.getProxy().nameNull();if(this.get("nameNot")==null)this.put("nameNot", "");this.put("name", null);return this;};
	/** not .... */
	this.nameNot=function(){if(this.proxy)return this.getProxy().nameNot();this.put("nameNot", "not");return this;};
	this.nameNotNull=function(){if(this.proxy)return this.getProxy().nameNotNull();this.put("nameNot", "not");this.put("name", null);return this;};
	this.nameNot=function(name){if(this.proxy)return this.getProxy().nameNot(name);this.put("nameNot", "not");this.put("name", name);return this;};
		
		 
	
	
	/** 联系人 [非空]       **/
	this.contacts=function(contacts){if(this.proxy)return this.getProxy().contacts(contacts);  this.put("contacts", contacts);return this;};
	/** and contacts is null */
	this.contactsNull=function(){if(this.proxy)return this.getProxy().contactsNull();if(this.get("contactsNot")==null)this.put("contactsNot", "");this.put("contacts", null);return this;};
	/** not .... */
	this.contactsNot=function(){if(this.proxy)return this.getProxy().contactsNot();this.put("contactsNot", "not");return this;};
	this.contactsNotNull=function(){if(this.proxy)return this.getProxy().contactsNotNull();this.put("contactsNot", "not");this.put("contacts", null);return this;};
	this.contactsNot=function(contacts){if(this.proxy)return this.getProxy().contactsNot(contacts);this.put("contactsNot", "not");this.put("contacts", contacts);return this;};
		
		 
	
	
	/** 手机号 [非空]       **/
	this.mobile=function(mobile){if(this.proxy)return this.getProxy().mobile(mobile);  this.put("mobile", mobile);return this;};
	/** and mobile is null */
	this.mobileNull=function(){if(this.proxy)return this.getProxy().mobileNull();if(this.get("mobileNot")==null)this.put("mobileNot", "");this.put("mobile", null);return this;};
	/** not .... */
	this.mobileNot=function(){if(this.proxy)return this.getProxy().mobileNot();this.put("mobileNot", "not");return this;};
	this.mobileNotNull=function(){if(this.proxy)return this.getProxy().mobileNotNull();this.put("mobileNot", "not");this.put("mobile", null);return this;};
	this.mobileNot=function(mobile){if(this.proxy)return this.getProxy().mobileNot(mobile);this.put("mobileNot", "not");this.put("mobile", mobile);return this;};
		
		 
	
	
	/** 申请金额 [非空]       **/
	this.money=function(money){if(this.proxy)return this.getProxy().money(money);  this.put("money", money);return this;};
	/** and money is null */
	this.moneyNull=function(){if(this.proxy)return this.getProxy().moneyNull();if(this.get("moneyNot")==null)this.put("moneyNot", "");this.put("money", null);return this;};
	/** not .... */
	this.moneyNot=function(){if(this.proxy)return this.getProxy().moneyNot();this.put("moneyNot", "not");return this;};
	this.moneyNotNull=function(){if(this.proxy)return this.getProxy().moneyNotNull();this.put("moneyNot", "not");this.put("money", null);return this;};
	this.moneyNot=function(money){if(this.proxy)return this.getProxy().moneyNot(money);this.put("moneyNot", "not");this.put("money", money);return this;};
		
	/** and money <= ? */
	this.moneyMin=function(min){if(this.proxy)return this.getProxy().moneyMin(min);this.put("moneyMin", min);return this;};
	/** and money >= ? */
	this.moneyMax=function(max){if(this.proxy)return this.getProxy().moneyMax(max);this.put("moneyMax", max);return this;};
		
		 
	
	
	/** 支付宝名称 [非空]       **/
	this.alipayName=function(alipayName){if(this.proxy)return this.getProxy().alipayName(alipayName);  this.put("alipayName", alipayName);return this;};
	/** and alipay_name is null */
	this.alipayNameNull=function(){if(this.proxy)return this.getProxy().alipayNameNull();if(this.get("alipayNameNot")==null)this.put("alipayNameNot", "");this.put("alipayName", null);return this;};
	/** not .... */
	this.alipayNameNot=function(){if(this.proxy)return this.getProxy().alipayNameNot();this.put("alipayNameNot", "not");return this;};
	this.alipayNameNotNull=function(){if(this.proxy)return this.getProxy().alipayNameNotNull();this.put("alipayNameNot", "not");this.put("alipayName", null);return this;};
	this.alipayNameNot=function(alipayName){if(this.proxy)return this.getProxy().alipayNameNot(alipayName);this.put("alipayNameNot", "not");this.put("alipayName", alipayName);return this;};
		
		 
	
	
	/** 支付宝账号 [非空]       **/
	this.alipayNo=function(alipayNo){if(this.proxy)return this.getProxy().alipayNo(alipayNo);  this.put("alipayNo", alipayNo);return this;};
	/** and alipay_no is null */
	this.alipayNoNull=function(){if(this.proxy)return this.getProxy().alipayNoNull();if(this.get("alipayNoNot")==null)this.put("alipayNoNot", "");this.put("alipayNo", null);return this;};
	/** not .... */
	this.alipayNoNot=function(){if(this.proxy)return this.getProxy().alipayNoNot();this.put("alipayNoNot", "not");return this;};
	this.alipayNoNotNull=function(){if(this.proxy)return this.getProxy().alipayNoNotNull();this.put("alipayNoNot", "not");this.put("alipayNo", null);return this;};
	this.alipayNoNot=function(alipayNo){if(this.proxy)return this.getProxy().alipayNoNot(alipayNo);this.put("alipayNoNot", "not");this.put("alipayNo", alipayNo);return this;};
		
		 
	
	
	/** 打款编号        **/
	this.callNo=function(callNo){if(this.proxy)return this.getProxy().callNo(callNo);  this.put("callNo", callNo);return this;};
	/** and call_no is null */
	this.callNoNull=function(){if(this.proxy)return this.getProxy().callNoNull();if(this.get("callNoNot")==null)this.put("callNoNot", "");this.put("callNo", null);return this;};
	/** not .... */
	this.callNoNot=function(){if(this.proxy)return this.getProxy().callNoNot();this.put("callNoNot", "not");return this;};
	this.callNoNotNull=function(){if(this.proxy)return this.getProxy().callNoNotNull();this.put("callNoNot", "not");this.put("callNo", null);return this;};
	this.callNoNot=function(callNo){if(this.proxy)return this.getProxy().callNoNot(callNo);this.put("callNoNot", "not");this.put("callNo", callNo);return this;};
		
		 
	
	
	/** 打款状态 [非空]   1:审核中 2:已打款 3:拒绝     **/
	this.approvalStatus=function(approvalStatus){if(this.proxy)return this.getProxy().approvalStatus(approvalStatus);  this.put("approvalStatus", approvalStatus);return this;};
	/** and approval_status is null */
	this.approvalStatusNull=function(){if(this.proxy)return this.getProxy().approvalStatusNull();if(this.get("approvalStatusNot")==null)this.put("approvalStatusNot", "");this.put("approvalStatus", null);return this;};
	/** not .... */
	this.approvalStatusNot=function(){if(this.proxy)return this.getProxy().approvalStatusNot();this.put("approvalStatusNot", "not");return this;};
	this.approvalStatusNotNull=function(){if(this.proxy)return this.getProxy().approvalStatusNotNull();this.put("approvalStatusNot", "not");this.put("approvalStatus", null);return this;};
	this.approvalStatusNot=function(approvalStatus){if(this.proxy)return this.getProxy().approvalStatusNot(approvalStatus);this.put("approvalStatusNot", "not");this.put("approvalStatus", approvalStatus);return this;};
		
		
	this.approvalStatusIn=function(ids){
		if(this.proxy)return this.getProxy().approvalStatusIn(ids);  this.put("approvalStatusIn", ids);return this;
	};	
		 
	
	
	/** 日志        **/
	this.erroLog=function(erroLog){if(this.proxy)return this.getProxy().erroLog(erroLog);  this.put("erroLog", erroLog);return this;};
	/** and erro_log is null */
	this.erroLogNull=function(){if(this.proxy)return this.getProxy().erroLogNull();if(this.get("erroLogNot")==null)this.put("erroLogNot", "");this.put("erroLog", null);return this;};
	/** not .... */
	this.erroLogNot=function(){if(this.proxy)return this.getProxy().erroLogNot();this.put("erroLogNot", "not");return this;};
	this.erroLogNotNull=function(){if(this.proxy)return this.getProxy().erroLogNotNull();this.put("erroLogNot", "not");this.put("erroLog", null);return this;};
	this.erroLogNot=function(erroLog){if(this.proxy)return this.getProxy().erroLogNot(erroLog);this.put("erroLogNot", "not");this.put("erroLog", erroLog);return this;};
		
		 
	
	
	/** 拒绝理由        **/
	this.liyou=function(liyou){if(this.proxy)return this.getProxy().liyou(liyou);  this.put("liyou", liyou);return this;};
	/** and liyou is null */
	this.liyouNull=function(){if(this.proxy)return this.getProxy().liyouNull();if(this.get("liyouNot")==null)this.put("liyouNot", "");this.put("liyou", null);return this;};
	/** not .... */
	this.liyouNot=function(){if(this.proxy)return this.getProxy().liyouNot();this.put("liyouNot", "not");return this;};
	this.liyouNotNull=function(){if(this.proxy)return this.getProxy().liyouNotNull();this.put("liyouNot", "not");this.put("liyou", null);return this;};
	this.liyouNot=function(liyou){if(this.proxy)return this.getProxy().liyouNot(liyou);this.put("liyouNot", "not");this.put("liyou", liyou);return this;};
		
		 
	
	
	/** 修改时间 [非空]       **/
	this.updateTime=function(updateTime){if(this.proxy)return this.getProxy().updateTime(updateTime);  this.put("updateTime", updateTime);return this;};
	/** and update_time is null */
	this.updateTimeNull=function(){if(this.proxy)return this.getProxy().updateTimeNull();if(this.get("updateTimeNot")==null)this.put("updateTimeNot", "");this.put("updateTime", null);return this;};
	/** not .... */
	this.updateTimeNot=function(){if(this.proxy)return this.getProxy().updateTimeNot();this.put("updateTimeNot", "not");return this;};
	this.updateTimeNotNull=function(){if(this.proxy)return this.getProxy().updateTimeNotNull();this.put("updateTimeNot", "not");this.put("updateTime", null);return this;};
	this.updateTimeNot=function(updateTime){if(this.proxy)return this.getProxy().updateTimeNot(updateTime);this.put("updateTimeNot", "not");this.put("updateTime", updateTime);return this;};
		
	/** and update_time >= ? */
	this.updateTimeStart=function(start){if(this.proxy)return this.getProxy().updateTimeStart(start);this.put("updateTimeStart", start);return this;};			
	/** and update_time <= ? */
	this.updateTimeEnd=function(end){if(this.proxy)return this.getProxy().updateTimeEnd(end);this.put("updateTimeEnd", end);return this;};
		
		 
	
	
	/** 添加时间 [非空]       **/
	this.addTime=function(addTime){if(this.proxy)return this.getProxy().addTime(addTime);  this.put("addTime", addTime);return this;};
	/** and add_time is null */
	this.addTimeNull=function(){if(this.proxy)return this.getProxy().addTimeNull();if(this.get("addTimeNot")==null)this.put("addTimeNot", "");this.put("addTime", null);return this;};
	/** not .... */
	this.addTimeNot=function(){if(this.proxy)return this.getProxy().addTimeNot();this.put("addTimeNot", "not");return this;};
	this.addTimeNotNull=function(){if(this.proxy)return this.getProxy().addTimeNotNull();this.put("addTimeNot", "not");this.put("addTime", null);return this;};
	this.addTimeNot=function(addTime){if(this.proxy)return this.getProxy().addTimeNot(addTime);this.put("addTimeNot", "not");this.put("addTime", addTime);return this;};
		
	/** and add_time >= ? */
	this.addTimeStart=function(start){if(this.proxy)return this.getProxy().addTimeStart(start);this.put("addTimeStart", start);return this;};			
	/** and add_time <= ? */
	this.addTimeEnd=function(end){if(this.proxy)return this.getProxy().addTimeEnd(end);this.put("addTimeEnd", end);return this;};
		
		 
	
	
	/** 状态 [非空]   1:正常 0:无效     **/
	this.status=function(status){if(this.proxy)return this.getProxy().status(status);  this.put("status", status);return this;};
	/** and status is null */
	this.statusNull=function(){if(this.proxy)return this.getProxy().statusNull();if(this.get("statusNot")==null)this.put("statusNot", "");this.put("status", null);return this;};
	/** not .... */
	this.statusNot=function(){if(this.proxy)return this.getProxy().statusNot();this.put("statusNot", "not");return this;};
	this.statusNotNull=function(){if(this.proxy)return this.getProxy().statusNotNull();this.put("statusNot", "not");this.put("status", null);return this;};
	this.statusNot=function(status){if(this.proxy)return this.getProxy().statusNot(status);this.put("statusNot", "not");this.put("status", status);return this;};
		
		
	this.statusIn=function(ids){
		if(this.proxy)return this.getProxy().statusIn(ids);  this.put("statusIn", ids);return this;
	};	
		 
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有配送商提现 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/delivery/distributorcash.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取配送商提现分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/delivery/distributorcash.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取配送商提现 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/delivery/distributorcash.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

DistributorCash.get = function(id){
	var protocol = ux.ajax("/admin/delivery/distributorcash.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.distributorCash;
	return null;
}

DistributorCash.where = new DistributorCash.Where(0,true);